﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Snake
{
    /// <summary>
    /// Egy ablak, ami bekéri a felhasználótól a nevét.
    /// </summary>
	public partial class nameBox : Form
	{
		public nameBox()
		{
			InitializeComponent();
		}

		private void okButton_Click(object sender, EventArgs e)
		{
			if (nameTextBox.Text != string.Empty)
			{
				Tag = nameTextBox.Text;
				Close();
			}
		}
	}
}
